package generics;

import net.mindview.util.FiveTuple;

/**
 * @author 杨宇
 * @version 1.0 2016/10/20
 */
public class E03_TupleTest {
    static SixTuple<Vehicle, Amphibian, String, Integer, Double, Long> l() {
        return new SixTuple<>(new Vehicle(), new Amphibian(), "hi", 47, 11.1, 15L);
    }

    public static void main(String[] args) {
        System.out.println(l());
    }

}


class SixTuple<A, B, C, D, E, F> extends FiveTuple<A, B, C, D, E> {
    public final F sixth;

    public SixTuple(A a, B b, C c, D d, E e, F f) {
        super(a, b, c, d, e);
        this.sixth = f;
    }


    @Override
    public String toString() {
        return "(" + first + ", " + second + ", " + third + ", " + fourth + ", " + fifth + ", " + sixth + ")";
    }
}

class Amphibian {
}

class Vehicle {
}